package com.ygqh.baby.mapper;
import com.ygqh.baby.po.AdminMaterial;
import com.ygqh.baby.po.AdminMaterialExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
public interface AdminMaterialMapper {
    int countByExample(AdminMaterialExample example);

    int deleteByExample(AdminMaterialExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AdminMaterial record);

    int insertSelective(AdminMaterial record);

    List<AdminMaterial> selectByExample(AdminMaterialExample example);

    AdminMaterial selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AdminMaterial record, @Param("example") AdminMaterialExample example);

    int updateByExample(@Param("record") AdminMaterial record, @Param("example") AdminMaterialExample example);

    int updateByPrimaryKeySelective(AdminMaterial record);

    int updateByPrimaryKey(AdminMaterial record);
    
    int countSuper(@Param ("q") String q);
    
    List<AdminMaterial> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);
	int selectByName(@Param("name") String name, @Param ("id") Long id);
	
}



